package main

import (
	"encoding/json"
	"fmt"
	"time"
)

type TestStruct struct {
	Name string
}

func main() {
	//d := TestStruct{Name: "aa"}
	//d.Test()
	//fmt.Println(d.Name)
	//locationTime1, _ := time.ParseInLocation("2006-01-02 15:04:05", "2023-09-18 00:00:00", time.Local)
	//fmt.Println(time.Now().Unix() - locationTime1.Unix())
	nowTime := "2022-09-28 10:32:45"
	location, _ := time.ParseInLocation("2006-01-02 15:04:05", nowTime, time.Local)
	fmt.Println(fmt.Sprint(location.Unix()))
	fmt.Println(fmt.Sprintf("%s %s", time.Now().Format("2006-01-02"), "05:00:00"))
	var ad []int
	ad = append(ad, 1)
	marshal, err := json.Marshal(ad)
	fmt.Println(err, string(marshal))
	fmt.Println(time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 5, 0, 0, 0, time.Local).AddDate(0, 0, 1).Unix())
	//index := rand.Intn(0)
	//fmt.Println(index)
	ccd := []int32{1, 2}
	ccds := []int32{3, 4}
	var ccdds []int32

	ccd = append(ccd, ccdds...)
	ccd = append(ccd, ccds...)
	fmt.Println(ccd)
}

func (m *TestStruct) Test() {
	m.Name = "dd"
}

//1664332365
//1664332365
//{0xc00050d200 0xc0001e6080 0 0xc0001ab0b0 0xc0005c2c80 0x508580 0xc00052dc20 0xc00014cc60 0xc000196380 {{0 0} 0 0 1 0} map[] {0 0} false}
